package com.xbf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods {
    @TableId(type = IdType.AUTO)
    @JsonProperty("gId")
    private Integer gId;  //商品id

    @JsonProperty("gName")
    private String gName;  //商品名称

    @JsonProperty("gDes")
    private String gDes;  //商品描述

    @JsonProperty("gPrice")
    private Double gPrice;  //商品价格

    @JsonProperty("gNum")
    private Integer gNum;  //商品数量

}
